48 #ifndef SENSOR_FUSION_CONTROL_H_ 49 #define SENSOR_FUSION_CONTROL_H_ 94 void sBufAppendItem(uint8_t *pDest, uint16_t *pIndex, uint8_t *pSource, uint16_t iBytesToCopy);
void( streamData_t)(SensorFusionGlobals *sfg, uint8_t *sUARTOutputBuffer)
enum quaternion quaternion_type
the quaternion type to be transmitted
void BlueRadios_Init(void)
Used to initialize the Blue Radios Bluetooth module found on the FRDM-FXS-MULT2-B sensor shield from ...
volatile uint8_t AltPacketOn
flag to enable altitude packet
The top level fusion structure.
streamData_t * stream
function to create packets for serial stream
volatile int8_t AccelCalPacketOn
variable used to coordinate accelerometer calibration
quaternion_type DefaultQuaternionPacketType
default quaternion transmitted at power on
int8_t initializeControlPort(ControlSubsystem *pComm)
Call this once to initialize structures, ports, etc.
void sBufAppendItem(uint8_t *pDest, uint16_t *pIndex, uint8_t *pSource, uint16_t iBytesToCopy)
Utility function used to place data in output buffer about to be transmitted via UART.
void CreateAndSendPackets(SensorFusionGlobals *sfg, uint8_t *sUARTOutputBuffer)
Called once per fusion cycle to stream information required by the NXP Sensor Fusion Toolbox...
he ControlSubsystem encapsulates command and data streaming functions.
volatile uint8_t DebugPacketOn
flag to enable debug packet
int8_t( writePort_t)(struct ControlSubsystem *pComm, uint8_t buffer[], uint16_t nbytes)
struct ControlSubsystem ControlSubsystem
he ControlSubsystem encapsulates command and data streaming functions.
writePort_t * write
low level function to write a char buffer to the serial stream
void DecodeCommandBytes(SensorFusionGlobals *sfg, char iCommandBuffer[], uint8 sUART_InputBuffer[], uint16 nbytes)
This function is responsible for decoding commands sent by the NXP Sensor Fusion Toolbox and setting ...
volatile uint8_t RPCPacketOn
flag to enable roll, pitch, compass packet
SensorFusionGlobals sfg
This is the primary sensor fusion data structure.
volatile quaternion_type QuaternionPacketType
quaternion type transmitted over UART
volatile uint8_t AngularVelocityPacketOn
flag to enable angular velocity packet
uint8_t sUARTOutputBuffer[256]
main output buffer defined in control.c